<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var obj = {
            name:'tom',
            age:13,
            'say address':'广西'
        }
        // 属性访问的第一种方法
        console.log(obj.name);
        // 属性访问的第二种方法
        console.log(obj['say address']);
        console.log(obj['name']);
        // 错误代码：
        // console.log(obj[name]);
        
        // 删除属性
        delete obj.age;
        console.log(obj);

        // console.log(typeof obj.name);
        // console.log(typeof 1);
        // console.log(typeof true);
    </script>
</body>
</html>